package com.Beans.Sessions;

public class User {
	
	
	public User(){
	}
	public int getId() {
		return Session.getId();
	}
	public String getNombre() {
		return Session.getNombre();
	}
	public String getApellido() {
		return Session.getApellido();
	}
	public String getCorreo() {
		return Session.getCorreo();
	}
	public String getUser() {
		return Session.getUser();
	}
	public String getCargo() {
		return Session.getCargo();
	}
	public int getIdArea() {
		return Session.getIdArea();
	}
	
	public int valueCargo(){
		String cargo = Session.getCargo();
		if(cargo.equalsIgnoreCase("empleado")){
			return 1;
		}else{
			if(cargo.equalsIgnoreCase("jefearea")){
				return 2;
			}else{
				if(cargo.equalsIgnoreCase("seguridad")){
					return 3;
				}
				else{
					return 0;
				}
			}
		}
		
	}
	
	
	
}
